import Layout from '@/layout'

const PersonalOfficeRouter = {
  path: '/PersonalOffice',
  component: Layout,
  redirect: 'info',
  children: [
    {
      path: 'message',
      component: () => import('@/views/PersonalOffice/notice/index'),
      name: '通知公告',
      meta: { title: '通知公告', icon: 'el-icon-user-solid', noCache: true }
    },
    {
      path: 'message-add',
      component: () => import('@/views/PersonalOffice/notice/components/addDialog'),
      name: '通知公告新增',
      meta: { title: '通知公告新增', icon: 'el-icon-user-solid', noCache: true }
    },
    {
      path: 'message-detail',
      component: () => import('@/views/PersonalOffice/notice/components/detailDialog'),
      name: '通知公告详情',
      meta: { title: '通知公告详情', icon: 'el-icon-user-solid', noCache: true }
    },
    {
      path: 'enterpriseApproval',
      name: 'EnterpriseExamine',
      meta: { title: '企业审核', icon: 'el-icon-user-solid', noCache: false },
      component: () => import('@/views/PersonalOffice/approval/enterprise/enterpriseExamine')
    },
    {
      path: 'personApproval',
      name: 'PersonnelExamine',
      meta: { title: '人员审核', icon: 'el-icon-user-solid', noCache: false },
      component: () => import('@/views/PersonalOffice/approval/personnel/personnelExamine')
    },
    {
      path: 'info',
      component: () => import('@/views/PersonalOffice/info'),
      name: '消息通知',
      meta: { title: '消息通知', icon: 'el-icon-user-solid', noCache: true }
    },
    {
      path: 'explorationConfirm',
      component: () => import('@/views/PersonalOffice/info/projectPersonal-exploration'),
      name: '勘探点确认',
      meta: { title: '勘探点确认', icon: 'el-icon-user-solid', noCache: true }
    },
    {
      path: 'enterpriseInfo',
      component: () => import('@/views/PersonalOffice/info/enterpriseInfo'),
      name: '确认企业',
      meta: { title: '确认企业', icon: 'el-icon-user-solid', noCache: true }
    },
    {
      path: 'personalInfo',
      component: () => import('@/views/PersonalOffice/info/personalInfo'),
      name: '确认人员',
      meta: { title: '确认人员', icon: 'el-icon-user-solid', noCache: true }
    },
    {
      path: 'allEnterprise',
      meta: { title: '确认企业', icon: 'el-icon-user-solid', noCache: false },
      component: () => import('@/views/PersonalOffice/approval/enterprise/enterpriseList')
    },
    {
      path: 'allPersonnel',
      meta: { title: '全部人员', icon: 'el-icon-user-solid', noCache: false },
      component: () => import('@/views/PersonalOffice/approval/personnel/personnelList')
    },
    {
      path: 'DrillHole',
      meta: { title: '钻孔列表', icon: 'el-icon-user-solid', noCache: false },
      component: () => import('@/views/PersonalOffice/DrillHole')
    }
  ]
}

export default PersonalOfficeRouter
